package com.immac.leejc.outstream;

import java.io.FileOutputStream;
import java.io.ObjectOutputStream;

public class Main {
	public static void main(String[] args) throws Exception {
		FileOutputStream fileOutStream = new FileOutputStream("Myfile.ser");
		ObjectOutputStream objectOutStream = new ObjectOutputStream(fileOutStream);
		
		objectOutStream.writeObject(new C());
		objectOutStream.writeObject(new C());
		objectOutStream.writeObject(new C());
		
		objectOutStream.close();
	}
}
